package edu.ustc.iproject.action.zhaopin;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import edu.ustc.iproject.bean.Note;
import edu.ustc.iproject.service.NoteService;
import edu.ustc.iproject.service.impl.NoteServiceImpl;

@SuppressWarnings("serial")
public class ListAllNotesAction extends ActionSupport {
	
	private List<Note> list_note = null;

	public List<Note> getList_note() {
		return list_note;
	}

	public void setList_note(List<Note> listNote) {
		list_note = listNote;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		
		NoteService noteService = new NoteServiceImpl();
		list_note = noteService.listAllNotes();
		
		return SUCCESS;
	}
	
	

}
